﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using CSP.Model.CSP;

namespace CSP.DataAccess.Mapping
{
    public class RecommendMap : EntityTypeConfiguration<Recommend>
    {
         public RecommendMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            // Table & Column Mappings
            this.ToTable("Recommend");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.ServiceId).HasColumnName("ServiceId");
            this.Property(t => t.RecommendType).HasColumnName("RecommendType");
            this.Property(t => t.ShowType).HasColumnName("ShowType");
        }
    }
}
